// components/allCar/all-car.ts
Component({
    properties: {
        list: { // 接收父组件传递的 showPop 参数
            type: Array,
            value: []
        }
    },
    methods: {
        godetailFn(event){
            const id =  event.currentTarget.dataset.id
            const type =  event.currentTarget.dataset.type
             wx.navigateTo({
                 url:`/pages/buycar/buycar?id=${id}&type=${type}`
             })
         },
    }
});
